package com.seashop.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seashop.response.ResponseBase;
import com.seashop.feign.MemberFeignClient;
import com.seashop.request.MemberRequestParam;
import com.seashop.request.UserReviewRequestParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author moredln
 * @desc
 * @date 2020-08-08 00:18
 */
@RestController
@Api(tags = "管理后台——会员管理")
public class MemberController {

    @Autowired
    private MemberFeignClient memberFeignClient;

    @GetMapping("/member/listUserPage")
    @ApiOperation(value = "会员列表")
    public ResponseBase listUserPage(MemberRequestParam param) {
        return memberFeignClient.listUserPage(param);
    }

    @GetMapping("/member/listUserReviewPage")
    @ApiOperation(value = "前台用户列表")
    public ResponseBase listUserReviewPage(UserReviewRequestParam param) {
        return memberFeignClient.listUserReviewPage(param);
    }
}
